﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CustomerTelConsumerRecordList.aspx.cs" Inherits="YWTSSys.Web.MachineSys.YWTSWeb.yw.CustomerTelConsumerRecordList" %>
<%--客户消费及通话记录--%>
<div class="tabs" currentIndex="0" eventType="click">
<div class="tabsHeader">
	<div class="tabsHeaderContent">
		<ul>
			<li><a href="javascript:;"><span>通话记录</span></a></li>
			<li><a href="javascript:;"><span>消费记录</span></a></li>
		</ul>
	</div>
</div>
<div class="tabsContent" style="height:170px;">
	<div>
		 <table class="list" width="98%" >
            <thead>
                <tr  > 
                    <th width="120px">通话时间</th>
                    <th width="90px">业务员</th>                
                    <th  >通话内容</th>                       
                </tr>
            </thead>                
            <asp:repeater id="rpTelMenu" runat="server">
                <HeaderTemplate>   
                <tbody>   
                </HeaderTemplate>
                <ItemTemplate>
                    <tr onclick="CustomerTelConsumerRecordList_ShowDetail(<%# Eval("ID") %>)"  >                
				        <td><%# Eval("通话时间")%></td>
				        <td ><%# Eval("RealName")%></td>
                        <td>
                            <%# YWTSSys.Library.StringHelper.GetStringLength(Eval("通话内容").ToString(),15)%>                                        
                        </td>
                                                                      
			        </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </tbody>                         
                </FooterTemplate>
            </asp:repeater>
        </table>
	</div>
	<div>
        <table class="list" width="98%" >
            <thead>
                <tr  > 
                    <th width="120px">消费时间</th>
                    <th width="90px">金额</th>                
                    <th width="90px" > 积分</th> 
                    <th   width="90px"> 收银员</th> 
                     <th  > 说明</th>                      
                </tr>
            </thead>                
            <asp:repeater id="rpConsumerMenu" runat="server">
                <HeaderTemplate>   
                <tbody>   
                </HeaderTemplate>
                <ItemTemplate>
                    <tr  >                
				        <td><%# Eval("消费时间")%></td>
				        <td ><%# Eval("消费金额")%></td>
                        <td>
                            <%# Eval("获的积分")%>                                        
                        </td>
                        <td>
                            <%# Eval("RealName")%>                                        
                        </td>
                           <td>
                            <%# Eval("备注说明")%>                                        
                        </td>                                           
			        </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </tbody>                         
                </FooterTemplate>
            </asp:repeater>
        </table>
	</div>
</div>
<div class="tabsFooter">
	<div class="tabsFooterContent"></div>
</div>


<script type="text/javascript" >
    function CustomerTelConsumerRecordList_ShowDetail(_TelId) {
        //alert(_customerId);
        //1.显示通话及消费记录
        var rel = "CustomerMasterList_TelRecordDetail";
        var href = "YWTSWeb/yw/TelRecordDetail.aspx?TelId=" + _TelId;
        if (rel) {
            var $rel = $("#" + rel);
            $rel.loadUrl(href, {}, function () {
                $rel.find("[layoutH]").layoutH();
            });
        }        
    }
</script>